Help > Reference > Macros > Collections > Entities collection

Entities collection

This collection contains Entity objects that represent the entities, detected in the search results. Use Entities property of the Tab object to access all the entities in the search results or use Entities property of the Document object to access the entities in a particular document.

The following example enumerates the entities of the active tab, writing them to file "c:\output.txt".

Example

Set FSO = CreateObject("Scripting.FileSystemObject")
Set Output = FSO.CreateTextFile("c:\output.txt", True)
For Each Entity in App.ActiveTab.Entities
  Output.WriteLine Entity.DisplayName
Next

See Also

Macro Object Model

Collections

Tab.Entities

Document.Entities

Entity